import request from '@/utils/request'

export default {
  maiyatianConf(data) {
    return request({
      method: 'GET',
      params: data,
      url: '/maiyatian/conf/saas-conf'
    })
  },
  maiyatianconfSave(data){
    return request({
      method: 'POST',
      data: data,
      url: '/maiyatian/conf/saas-conf-save'
    })
  },
  maiyatianIndexConf(data){
    return request({
      method: 'GET',
      params: data,
      url: '/maiyatian/index/conf'
    })
  },
  maiyatianIndexSave(data){
    return request({
      method: 'POST',
      data: data,
      url: '/maiyatian/index/conf-save'
    })
  },
  maiyatianIndexUrl(data){
    return request({
      method: 'POST',
      data: data,
      url: '/maiyatian/index/create-url'
    })
  },
  indexOrderList(data){
    return request({
      method: 'GET',
      params: data,
      url: '/maiyatian/index/order-list'
    })
  },
  orderApplyRefund(data){
    return request({
      method: 'POST',
      data: data,
      url: '/maiyatian/index/order-apply-refund'
    })
  },
  indexorderCanceled(data){
    return request({
      method: 'POST',
      data: data,
      url: '/maiyatian/index/order-canceled'
    })
  },
}
